package com.cm.study.spring.boot.autoconfigure;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
@EnableConfigurationProperties(value = StudyStarterProperties.class)
public class StudyStarterAutoConfiguration {
	@Autowired
	StudyStarterProperties studyStarterProperties;
	@Bean
	public StudyStaterService  getStudyStaterService() {
		System.out.println(studyStarterProperties);
		return new StudyStaterService();
	}
}
